Skip to content

refactor: launcher imports shared profile.Config package#49

Closed
robbycochran wants to merge 1 commit into
rc/phase2-agent-parserfrom
rc/phase2-launcher-refactor
Closed

refactor: launcher imports shared profile.Config package#49
robbycochran wants to merge 1 commit into
rc/phase2-agent-parserfrom
rc/phase2-launcher-refactor

Conversation

@robbycochran

Copy link
Copy Markdown
Collaborator

Summary

  • Replace duplicated Config struct, KeepSandbox(), and parseConfig() in sandbox/launcher/main.go with imports from internal/profile
  • Add parent module dependency in sandbox/launcher/go.mod with replace directive (resolved locally by go.work)
  • Update sandbox/launcher/main_test.go to use profile.ParseFile instead of the removed local parseConfig

Launcher-specific functions (configureGateway, checkProviders, stageFiles, createSandbox, uploadFiles) are kept as-is -- they use exec.Command directly and will be refactored separately.

Stacked on #46 (rc/phase2-agent-parser).

Test plan

  • cd sandbox/launcher && CGO_ENABLED=0 go test ./... passes
  • cd sandbox/launcher && go vet ./... passes
  • CGO_ENABLED=0 go test ./... (root) passes

🤖 Generated with Claude Code

…e package

Replace duplicated Config struct, KeepSandbox(), and parseConfig() in
sandbox/launcher with imports from internal/profile. The launcher module
now depends on the parent module via a replace directive (resolved by
go.work at build time). Launcher-specific functions (configureGateway,
checkProviders, stageFiles, createSandbox, uploadFiles) are kept as-is.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@robbycochran

Copy link
Copy Markdown
Collaborator Author

Closing: pivoting to single-binary approach. The launcher will be replaced by the harness binary in a container image, eliminating the need for go.work and the separate launcher module.

@robbycochran robbycochran deleted the rc/phase2-launcher-refactor branch June 13, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant